<#include "/common/_layout.html"/>
<@layout/>
<script type="text/javascript" src="${ctx}/static/js/sale.js"></script>
</head>
<body class="easyui-layout">
<div data-options="region:'west',split:true,border:false,title:'订单列表'"  style="width: 300px">
	<table id="tg" data-options="singleSelect: true,onClickRow: function(row){$('#dg').datagrid('load',{saleId:row.id});}">
		<thead>
			<tr>
				<th data-options="field:'id',hidden:true">id</th>
				<th data-options="field:'saleNo'" width="5%">订单号</th>
				<th data-options="field:'customer'" width="5%">客户</th>
				<th data-options="field:'partnerName'" width="10%">定制店</th>
			</tr>
		</thead>
	</table>
  </div> 
  <div data-options="region:'center',split:true,border:false,title:'订单明细'">
	<table id="dg" data-options="toolbar:'#toolbar', singleSelect: false">
		<thead>
			<tr>
				<th data-options="field:'id',hidden:true">id</th>
				<th data-options="field:'ck',checkbox:true"></th>
				<th align="center" width="10%" data-options="field:'productName'">产品</th>
				<th align="center" width="5%"  data-options="field:'style'">版型</th>
				<th align="center"  width="5%" data-options="field:'color'">颜色</th>
				<th align="center" width="5%"  data-options="field:'salePrice'">销售价格</th>
				<th align="center" width="5%"  data-options="field:'state'">状态</th>
				<th align="center"  width="5%" data-options="field:'customDate'">下单日期</th>
				<th align="center"  width="5%" data-options="field:'instockDate'">到货日期</th>
				<th align="center"  width="5%" data-options="field:'outstockDate'">交付日期</th>
				<th align="center" width="5%"  data-options="field:'itemDesc'">订单备注</th>
				<th align="center" width="5%"  data-options="field:'serviceDesc'">售后备注</th>
				
			</tr>
		</thead>
	</table>
</div>
<div id="toolbar" style="padding:5px;height:auto;">
    <div style="display:inline;margin-left:5px;">
      <a class="easyui-linkbutton" id="custom" data-options="iconCls:'icon-undo',plain:true">下单</a><span class="toolbar-item dialog-tool-separator"></span>
      <a class="easyui-linkbutton" id="instock" data-options="iconCls:'icon-redo',plain:true">到货</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="outstock" data-options="iconCls:'icon-ok',plain:true">交付</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="repair" data-options="iconCls:'icon-filter',plain:true">维修</a>
	</div>
</div>

</body>
</html>